package cn.com.zzz.html;

import cn.bbs.ba.html.ZPaiConstant;
import cn.bbs.ba.html.ZZZJspContextServices;

public class PPJspContextServices extends ZZZJspContextServices {

	/** 页面初始化参数 001:首页 002：正在竞拍....**/
	private static String strIndexPara = "001";
	
	/** 是否已经登录 */
	private boolean isLogon = false;
	
	/**
	 * 页面初始化参数
	 * 001:首页 002：正在竞拍....
	 */
	public static String getIndex() {
		return strIndexPara;
	}
	
	/**
	 * 001:首页 002：正在竞拍....
	 */
	public static void setIndex(String strIndex) {
		strIndexPara = strIndex;
	}
	
	/**
	 * 登录：true 没有登录：false
	 * @return
	 */
	public boolean isLogon() {
		return isLogon;
	}
	
	public void setLogon(boolean plogon) {
		isLogon = plogon;
	}
	
	
	/**
	 * 取国际化值
	 * @param strPara
	 * @return
	 */
	public String getResouceDisplayAt(String strPara) {
		String language = ZPaiConstant.getLanguage();
		return ZPaiConstant.getResouceDisplayAt(strPara, language);
	}
	
	/**
	 * 获取图片路径
	 * @param strImg
	 * @return
	 */
	public String getImgPath(String strImg) {
		return "upload/image/"+ strImg;
	}
	
	/**
	 * 获取图片路径
	 * @param strImg
	 * @return
	 */
	public String getImgPathNoEx(String strImg) {
		return "upload/image/"+ strImg + ".jpg";
	}
}
